package com.dpxiao.news.news.base;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

/**
 * Created by itheima.
 */

public class MyApplication extends Application {
    private static MyApplication context;
    private static int mainTid;
    private static Handler handler;

    public static Context getApplication() {
        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        mainTid = android.os.Process.myTid();
        handler = new Handler();
    }


    public static int getMainTid() {
        return mainTid;
    }

    public static Handler getHandler() {
        return handler;
    }
}
